books = ["a.围城", "b.配色设计原理", "c.Spring源码解析"]
print(books)

print("按照字母顺序排序元素")
books.sort()
print(books)

print("按照字母顺序反向排序元素")
books.sort(reverse=True)
print(books)

print("按照字母顺序临时排序元素")
print(sorted(books))
print(books)

print("按照字母顺序临时反向排序元素")
print(sorted(books,reverse=True))
print(books)

print("获取列表长度")
print(len(books))
